package org.example.autofilearchiver.toolclass.ELSE;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
//存tag数据和索引寻找int
public class FindDataWithStringAndNumberObject {
    private String tag;
    private int addIndex;
    private String replacePathString;//要替换的路径文字
    private String extractCommonFeature;//是否共性提取，用于共有文字
    private String usage;//用途属性
    private String usefulString;//得到相应的有用的数据

    public boolean getIsExtractCommonFeature() {
        if(extractCommonFeature.equals("1")){
            return true;
        }else {
            return false;
        }
    }


    public FindDataWithStringAndNumberObject copy() {
        return new FindDataWithStringAndNumberObject(
                this.tag,
                this.addIndex,
                this.replacePathString,
                this.extractCommonFeature,
                this.usage,
                this.usefulString
        );
    }
}
